<html {$html_attrs}>
<head>
<title>Programacao Mensal</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
{BEGIN style_block}
<style>
#toplinks_caption{$id} {padding:0px 30px;font-size:12px;font-weight:bold;}
#mastertable_block{$id} {margin-left:50px;margin-top:10px}
#toplinks_block{$id} {width:100%;padding:3px;padding-left:30px}
#toplinks_block{$id} span {padding-left:5px;}
#search_records_block{$id} { padding-left:5px;}
#search_records_block{$id} > * {vertical-align:middle;}
#search_records_block{$id} select {margin:3px 0px;}
#login_block{$id} {padding:10px; margin-bottom:3px}
#login_block{$id} * {margin-left:5px; padding:5px 0px;}
#menu_block{$id} {padding:10px;}
#menu_block{$id} * {list-style-type:none;}
#menu_block{$id} IMG {vertical-align:middle;}
#record_controls{$id} {padding:10px 10px;text-align: left;}
#record_controls{$id} span{padding-left:10px;}
#recordcontrolsadd_block{$id} {padding:10px 10px;border: solid; border-width: 1px; border-color: #C0C0C0;text-align: right;}
#grid_block{$id} {border:solid 1px #C0C0C0;}
.listIcons img.listIcon{margin:0 3px;opacity:0.3;filter:alpha(opacity=30);}
.grid_recordheader{$id} {padding:0 5px 5px;vertical-align:top;}
.grid_recordheader{$id} a {margin:0px 5px;}
body {margin:0px;padding:0px;}
.bottomPanelBorder{
	/*margin-right: 10px;*/
	padding-bottom: 18px;
	border-left: 1px solid #C0C0C0;
	border-right: 1px solid #C0C0C0;
	border-bottom: 1px solid #C0C0C0;
}
#searchform{$id}{float: left;}
#searchPanelContainer{$id}{
	width: 200px;
	float: left;
	position:absolute;
}
.searchOptions {margin-top: -10px;}
/*report styles*/
#export_links{$id} * {padding:0}
</style>
{END style_block}
</head>
<body marginheight=0 marginwidth=0 {$bodyattrs}>
{BEGIN body}
<div id="height100{$id}">
{$header}
    {BEGIN mastertable_block}
    <div id="mastertable_block{$id}">
    {$showmasterfile}
	<a {$backtomasterlink_attrs} class="toplinks"><b>Voltar para {$backtomasterlink_caption}</b></a>
	<br>
    </div>
    {END mastertable_block}

{BEGIN toplinks_block}
<div id="toplinks_block{$id}">

&nbsp;<font><b>Programacao&nbsp;Mensal</b></font>








</div>
{END toplinks_block}

{BEGIN search_records_block} 
<div id="recordcontrolsadd_block{$id}" class="shade3">

<span id="search_records_block{$id}" class="shade3">
        {BEGIN searchform}
    	<!-- Search panel header for horizontal layouts -->
		<span id="searchform{$id}" align="absmiddle">
	<span id="searchPanelHeader{$id}">				
		{$simpleSearchFieldCombo}
		{$simpleSearchTypeCombo}		
		{BEGIN searchform_text}
		<input type="text" {$searchfor_attrs} size="25">
		{END searchform_text}
		&nbsp;
		{BEGIN searchform_search}
			<span class="buttonborder"><input class="button" type="button" style="width: 30px; height:30px; background-image: url(images/search/search.gif);" {$searchbutton_attrs} ></span>
		{END searchform_search}
		&nbsp;
		{BEGIN searchform_showall}	
		<span id="showall{$id}" class="buttonborder"><input type="button" class="button" value="Mostrar Todos" {$showallbutton_attrs}></span>
		{END searchform_showall}
	</span>
	{BEGIN searchPanelTopButtons}
	<span>
		&nbsp;
		<span class="buttonborder"><input class="button" type="button" id="showSrchWin{$id}" style="width: 18px; background-image: url(images/search/showWindowPin.gif);" {$showHideSearchWin_attrs} ></span>
		&nbsp;		
		<span class="buttonborder"><input class="button" type="button" id="showOptPanel{$id}" style="width: 18px; background-image: url(images/search/showOptions.gif);" {$showHideSearchPanel_attrs} ></span>
	</span>
	{END searchPanelTopButtons}
</span> 
    {END searchform}
    {BEGIN details_block}
    <span  id="detFound{$id}">Ítens Encontrados: <b>{$records_found}</b>&nbsp;&nbsp;&nbsp;&nbsp;</span>
    {END details_block}
    {BEGIN pages_block}
    <span id="pageOf{$id}">Página <b>{$page}</b> de <b>{$maxpages}</b></span>
    {END pages_block}

    &nbsp;&nbsp;&nbsp;&nbsp;
        {BEGIN recordspp_block}
    <span id="recordspp_block{$id}">
    Registros por Página:
    <select {$recordspp_attrs}>
    <option value="10" {$rpp10_selected}>10</option>
    <option value="20" {$rpp20_selected}>20</option>
    <option value="30" {$rpp30_selected}>30</option>
    <option value="50" {$rpp50_selected}>50</option>
    <option value="100" {$rpp100_selected}>100</option>
    <option value="500" {$rpp500_selected}>500</option>
    </select>
    </span>
    {END recordspp_block}
</span>
</div>
{END search_records_block} 


<!-- search panel and window -->
<div id="searchPanelContainer{$id}" class="searchPanelContainer">
{$adv_search_panel}
</div>

<div moveForSearch="move{$id}" {$marginStyle}>

{BEGIN recordcontrols_block}
<div id="record_controls{$id}">

{BEGIN newrecord_controls}
<span id="newrecords_block">
{BEGIN add_link}
<a href="programacao_mensal_add.php"><img src="botoes/bt_novo.png" alt="" border="0"/></a>
{END add_link}

</span>
{END newrecord_controls}

{BEGIN record_controls}

{BEGIN deleteselected_link}
<span {$deleteselectedlink_span}><a href="#" {$deleteselectedlink_attrs}><img src="botoes/bt_excluir.png" alt="" border="0"/></a></span>
{END deleteselected_link}



{END record_controls}
</div>
{END recordcontrols_block}

<div id="usermessage{$id}" class="message">{$user_message}</div>

<link rel="stylesheet" href="base/css/jquery.tooltip.css" />

<script src="base/js/jquery.bgiframe.js" type="text/javascript"></script>
<script src="base/js/jquery.dimensions.js" type="text/javascript"></script>
<script src="base/js/jquery.tooltip.js" type="text/javascript"></script>

<script type="text/javascript">
$(function() {
$('#resize_cell1 *').tooltip({
track: true,
	delay: 0,
	showURL: false,
	showBody: " - ",
	fade: 250
});
});
</script>
{BEGIN grid_block}
<div id="resize_cell{$id}">
<table name="maintable" cellspacing=0 cellpadding=3 border=1 bordercolor="#FFFFFF" style="border-collapse: collapse" id="grid_block{$id}">
{BEGIN grid_header}
<thead>
<tr valign="top" {$gridHeader_attrs}>
{BEGIN record_header}

{BEGIN listIcons_column}
	<th align="center" class="blackshade" {$widthListIcons} nowrap="nowrap">&nbsp;</th>
{END listIcons_column}

{BEGIN checkbox_column}
<th width="20" class="blackshade" align="left">
{BEGIN checkbox_header}
<input type="checkbox" {$checkboxheader_attrs}>
{END checkbox_header}
</th>
{END checkbox_column}


{BEGIN id_classificacao_orcamentaria_fieldheadercolumn}
<th class="blackshade" align="left">&nbsp;
{BEGIN id_classificacao_orcamentaria_fieldheader}
<a class="defblackshade" {$id_classificacao_orcamentaria_orderlinkattrs}>Classificacao Orcamentaria</a>
{END id_classificacao_orcamentaria_fieldheader}
&nbsp;
</th>
{END id_classificacao_orcamentaria_fieldheadercolumn}
{BEGIN mes_fieldheadercolumn}
<th class="blackshade" align="left">&nbsp;
{BEGIN mes_fieldheader}
<a class="defblackshade" {$mes_orderlinkattrs}>Mes</a>
{END mes_fieldheader}
&nbsp;
</th>
{END mes_fieldheadercolumn}
{BEGIN detalhe_pedido_fieldheadercolumn}
<th class="blackshade" align="left">&nbsp;
Detalhe Pedido
&nbsp;
</th>
{END detalhe_pedido_fieldheadercolumn}
{BEGIN custo_programado_fieldheadercolumn}
<th class="blackshade" align="left">&nbsp;
{BEGIN custo_programado_fieldheader}
<a class="defblackshade" {$custo_programado_orderlinkattrs}>Custo Programado</a>
{END custo_programado_fieldheader}
&nbsp;
</th>
{END custo_programado_fieldheadercolumn}
{BEGIN obs_uc_fieldheadercolumn}
<th class="blackshade" align="left">&nbsp;
Obs Uc
&nbsp;
</th>
{END obs_uc_fieldheadercolumn}
{BEGIN obs_reg_fieldheadercolumn}
<th class="blackshade" align="left">&nbsp;
Obs Reg
&nbsp;
</th>
{END obs_reg_fieldheadercolumn}
{BEGIN obs_sede_fieldheadercolumn}
<th class="blackshade" align="left">&nbsp;
Obs Sede
&nbsp;
</th>
{END obs_sede_fieldheadercolumn}
{BEGIN status_progr_uc_fieldheadercolumn}
<th class="blackshade" align="left">&nbsp;
{BEGIN status_progr_uc_fieldheader}
<a class="defblackshade" {$status_progr_uc_orderlinkattrs}>UC</a>
{END status_progr_uc_fieldheader}
&nbsp;
</th>
{END status_progr_uc_fieldheadercolumn}
{BEGIN status_progr_reg_fieldheadercolumn}
<th class="blackshade" align="left">&nbsp;
{BEGIN status_progr_reg_fieldheader}
<a class="defblackshade" {$status_progr_reg_orderlinkattrs}>Regional</a>
{END status_progr_reg_fieldheader}
&nbsp;
</th>
{END status_progr_reg_fieldheadercolumn}
{BEGIN status_progr_sede_fieldheadercolumn}
<th class="blackshade" align="left">&nbsp;
{BEGIN status_progr_sede_fieldheader}
<a class="defblackshade" {$status_progr_sede_orderlinkattrs}>Sede</a>
{END status_progr_sede_fieldheader}
&nbsp;
</th>
{END status_progr_sede_fieldheadercolumn}
{BEGIN endrecordheader_block}
<th class="blackshade">&nbsp;</th>
{END endrecordheader_block}

{END record_header}
</tr>
</thead>
{END grid_header}

<tbody>
{BEGIN grid_row}
<tr valign="top" {$rowstyle} {$rowattrs}> 
{BEGIN grid_record}

{BEGIN listIcons_column}
	<td align="left" class="listIcons" valign="middle" nowrap="nowrap">
		{BEGIN edit_column}
	{BEGIN edit_link}
	<a {$editlink_attrs} title="Editar"><img class="listIcon" src="images/icon_edit_new.gif" align="middle" alt="Editar" border="0"></a>
	{END edit_link}
	{END edit_column}

	
	
		</td>
{END listIcons_column}	

{BEGIN checkbox_column}
<td align="left" valign="middle" width="20" >
{BEGIN checkbox}
<input type="checkbox" {$checkbox_attrs}>
{END checkbox}
</td>
{END checkbox_column}


{BEGIN id_classificacao_orcamentaria_fieldcolumn}
<td valign="middle" {$id_classificacao_orcamentaria_style}>
{$id_classificacao_orcamentaria_value}
</td>
{END id_classificacao_orcamentaria_fieldcolumn}
{BEGIN mes_fieldcolumn}
<td valign="middle" {$mes_style}>
{$mes_value}
</td>
{END mes_fieldcolumn}
{BEGIN detalhe_pedido_fieldcolumn}
<td valign="middle" {$detalhe_pedido_style}>
{$detalhe_pedido_value}
</td>
{END detalhe_pedido_fieldcolumn}
{BEGIN custo_programado_fieldcolumn}
<td valign="middle" {$custo_programado_style}>
{$custo_programado_value}
</td>
{END custo_programado_fieldcolumn}
{BEGIN obs_uc_fieldcolumn}
<td valign="middle" {$obs_uc_style}>
{$obs_uc_value}
</td>
{END obs_uc_fieldcolumn}
{BEGIN obs_reg_fieldcolumn}
<td valign="middle" {$obs_reg_style}>
{$obs_reg_value}
</td>
{END obs_reg_fieldcolumn}
{BEGIN obs_sede_fieldcolumn}
<td valign="middle" {$obs_sede_style}>
{$obs_sede_value}
</td>
{END obs_sede_fieldcolumn}
{BEGIN status_progr_uc_fieldcolumn}
<td valign="middle" {$status_progr_uc_style}>
{$status_progr_uc_value}
</td>
{END status_progr_uc_fieldcolumn}
{BEGIN status_progr_reg_fieldcolumn}
<td valign="middle" {$status_progr_reg_style}>
{$status_progr_reg_value}
</td>
{END status_progr_reg_fieldcolumn}
{BEGIN status_progr_sede_fieldcolumn}
<td valign="middle" {$status_progr_sede_style}>
{$status_progr_sede_value}
</td>
{END status_progr_sede_fieldcolumn}

{BEGIN endrecord_block}
<td class="body2" {$endrecordblock_attrs}>&nbsp;</td>
{END endrecord_block}
{END grid_record}
</tr>
{END grid_row}
</tbody>

{BEGIN totals_row}
<tfoot>
<tr rowid="totals">
{BEGIN totals_record}
{BEGIN listIcons_column}
	<td align="center" class="blackshade" nowrap="nowrap">&nbsp;</td>
{END listIcons_column}
	
{BEGIN checkbox_column}
<td width="50" align="center" class="blackshade">&nbsp;

</td>
{END checkbox_column}


{BEGIN id_classificacao_orcamentaria_fieldfootercolumn}
<td valign=middle align=center class="blackshade">
&nbsp;
</td>
{END id_classificacao_orcamentaria_fieldfootercolumn}
{BEGIN mes_fieldfootercolumn}
<td valign=middle align=center class="blackshade">
&nbsp;
</td>
{END mes_fieldfootercolumn}
{BEGIN detalhe_pedido_fieldfootercolumn}
<td valign=middle align=center class="blackshade">
&nbsp;
</td>
{END detalhe_pedido_fieldfootercolumn}
{BEGIN custo_programado_fieldfootercolumn}
<td valign=middle align=center class="blackshade">
	{BEGIN custo_programado_showtotal}
			Total:
	{$custo_programado_total}
	{END custo_programado_showtotal}
</td>
{END custo_programado_fieldfootercolumn}
{BEGIN obs_uc_fieldfootercolumn}
<td valign=middle align=center class="blackshade">
&nbsp;
</td>
{END obs_uc_fieldfootercolumn}
{BEGIN obs_reg_fieldfootercolumn}
<td valign=middle align=center class="blackshade">
&nbsp;
</td>
{END obs_reg_fieldfootercolumn}
{BEGIN obs_sede_fieldfootercolumn}
<td valign=middle align=center class="blackshade">
&nbsp;
</td>
{END obs_sede_fieldfootercolumn}
{BEGIN status_progr_uc_fieldfootercolumn}
<td valign=middle align=center class="blackshade">
&nbsp;
</td>
{END status_progr_uc_fieldfootercolumn}
{BEGIN status_progr_reg_fieldfootercolumn}
<td valign=middle align=center class="blackshade">
&nbsp;
</td>
{END status_progr_reg_fieldfootercolumn}
{BEGIN status_progr_sede_fieldfootercolumn}
<td valign=middle align=center class="blackshade">
&nbsp;
</td>
{END status_progr_sede_fieldfootercolumn}

{BEGIN endrecordtotals_block}
<td>&nbsp;</td>
{END endrecordtotals_block}
{END totals_record}
</tr>
</tfoot>
{END totals_row}
</table>
</div>
{END grid_block}

</div>


{BEGIN pagination_block}
<div id="pagination_block{$id}" align="center" class="toplist" >{$pagination}</div>
{END pagination_block}

{BEGIN message_block}
<div align=center valign=middle class=toplist><b>{$message}</b></div>
{END message_block}
{$footer}
</div>
{END body}
</body>
</html>